<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center" width="5%">id</th>
            <th class="text-center" width="12%">操作模块</th>
            <th class="text-center" width="20%">操作描述</th>
            <th class="text-center" width="5%">请求方法</th>
            <th class="text-center" width="10%">IP</th>
            <th class="text-center" width="15%">操作账号</th>
            <th class="text-center" width="10%">方法执行时间(ms)</th>
            <th class="text-center" width="15%">操作时间</th>
            <th class="text-center" width="8%">操作</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <th class="text-center" width="5%"></th>
                <th class="text-center" width="12%"></th>
                <th class="text-center" width="20%"></th>
                <th class="text-center" width="5%"></th>
                <th class="text-center" width="10%"></th>
                <th class="text-center" width="15%"></th>
                <th class="text-center" width="10%"></th>
                <th class="text-center" width="15%"></th>
                <th class="text-center" width="8%"></th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="10" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="oplog : ${dataMap['list']}">
                <td class="text-center" th:text="${oplog['id']}">
                </td>
                <td class="text-center">
                    <span th:if="${oplog['module']} eq 'SYS_USER'">系统用户模块</span>
                    <span th:if="${oplog['module']} eq 'USER'">学员模块</span>
                    <span th:if="${oplog['module']} eq 'COURSE'">课程模块</span>
                    <span th:if="${oplog['module']} eq 'EXAM'">考试模块</span>
                    <span th:if="${oplog['module']} eq 'ORDER'">订单模块</span>
                    <span th:if="${oplog['module']} eq 'OTHER'">其他模块</span>
                </td>
                <td class="text-center" th:text="${oplog['action']}">
                </td>
                <td class="text-center" th:text="${oplog['requestMethod']}">
                </td>
                <td class="text-center" th:text="${oplog['ip']}">
                </td>
                <td class="text-center" th:text="${oplog['account']}">
                </td>
                <td class="text-center" th:text="${oplog['runTime']}">
                </td>
                <td class="text-center" th:text="${oplog['createTime']}">
                </td>
                <td class="text-center">
                    <a href="javascript:void(0);" class="c-master fs14 ml5" data-toggle="tooltip" data-placement="bottom" data-original-title="查看请求地址和参数" th:attrappend="data-id=${oplog['id']},data-url=${oplog['url']},data-params=${oplog['params']}" ><i class="fa fa-eye"></i></a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>